Release 10.1A: OpenEdge Development:
Progress Dynamics Administration
Mapping lookup fields to SDO fields through viewer widgets
For the CustomerCodeLookup example created on
customer_obj, you can fix the redundancy for the user created by linking the lookup fields directly to the SDO by permanently hiding the customer_name fill-in object used to map the lookup display field to the corresponding SDO field. However, you might prefer to map lookup fields through separate viewer widgets mapped to the SDO.
![]()
To map the fields from the tutorial CustomerCodeLookup to SDO fields through viewer widgets:
- Ensure that you have created a join from
art_ordertoarm_customerin theart_orderSDO (artorfullo) and added the following fields for the lookup fromarm_customerto the SDO:
customer_balancecustomer_codecustomer_nameFor more information, see the "Preparing the lookup for field mapping" section.
- After you have saved the updated SDO, open the
art_orderviewer (artorviewv) in the AppBuilder.Note: This example assumes that you have already added the fiCustBalance widget as part of creating CustomerCodeLookup in the tutorial. For more information, see OpenEdge Development: Progress Dynamics Getting Started .- Add a new fill-in widget, fiCustCode, to the viewer, formatted to display
arm_customer.customer_code.- Right-click on the CustomerCodeLookup and choose Instance Properties from the pop-up menu. This displays the SmartDataField Maintenance (Instance Properties) window.
- In the query field browser, select the row for
arm_customer.customer_codeand type the following column values:- Choose the Map Fields tab. The left selection list on this tab lists all the fields in the data source (
artorfulloSDO), and the right selection list lists the linked viewer fields (fiCustBalance and fiCustCode) for the lookup query.- Map these viewer fields to the corresponding SDO fields:
- Map the Displayed field for the lookup:
- Save the instance properties to complete the dynamic lookup field mapping.
The field redundancy that the first mapping option creates for this example (see the "Linking lookup fields directly to SDO fields on the viewer" section) does not occur using this option. The Map Fields tab allows you to specify the mapping of the lookup Displayed field to the corresponding SDO field without the need for a linked viewer widget that would otherwise create a redundant field on the viewer mapped to the SDO that displays the same value. Although this mapping option requires more steps to set up, it has the flexibility to accommodate field mappings for any lookup, no matter how it is defined.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |